<?php

namespace common\models;

use yii\db\ActiveRecord;

class Error extends ActiveRecord {
    public static function tableName()
    {
        return "error";
    }

    public function attributeLabels()
    {
        return
            [
                'id'=>'监管id',
                'error_time'=>'报错时间',
                'error_msg'=>'报错的控制器+方法名',
                'error_type'=>'报错模块',
            ];

    }
    public function rules()
    {
        return[
            [['error_time','error_type'],'integer'],
            [['error_msg'],'string'],
        ];
    }

}
